import Vue from 'vue'
import Router from 'vue-router'

//组件模块

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: "/home",
      component: () =>
        import('@/pages/home/index.vue')
    },
    {
      path: '/',
      redirect: '/home',
    },
    {
      path: '/list',
      component: () =>
        import('@/pages/list/index.vue')
    },
  ]
})